//
//  THMineGroupTableViewCell.m
//  TreeHole
//
//  Created by apple on 2020/9/1.
//  Copyright © 2020 stoneobs. All rights reserved.
//

#import "THMineGroupOneTableViewCell.h"

@interface THMineGroupOneTableViewCell()


@property(nonatomic, strong) STLabel                     *nameLable;/**<  */
@property(nonatomic, strong) STLabel                     *orderLable;/**<  */
@property(nonatomic, strong) STLabel                     *timeLable;/**<  */
@property(nonatomic, strong) STLabel                     *moneyLable;/**<  */
@end
@implementation THMineGroupOneTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self stoneobs_ui_configSubView];
    }
    return self;
}
+ (CGFloat)stoneobs_ui_cell_height{
    return 75+11;
}
#pragma mark --configSubView
- (void)stoneobs_ui_configSubView{
    

    
    ({
        STLabel * stoneobs_ui_label = [[STLabel alloc] initWithFrame:CGRectMake(15, 10, 300, 20)
                                                                text:@"sasd"
                                                           textColor:STONEOBS_UI_FIRST_TEXT_COLOR
                                                                font:13
                                                         isSizetoFit:NO
                                                       textAlignment:NSTextAlignmentLeft];
        [self.contentView addSubview:stoneobs_ui_label];
        stoneobs_ui_label.font = [UIFont fontWithName:STONEOBS_UI_FONT_CU_NAME size:13];
        self.nameLable = stoneobs_ui_label;
    });
    
    ({
        STLabel * stoneobs_ui_label = [[STLabel alloc] initWithFrame:CGRectMake(15, self.nameLable.bottom + 5, 300, 20)
                                                                text:@"sasd"
                                                           textColor:STONEOBS_UI_THIRD_TEXT_COLOR
                                                                font:13
                                                         isSizetoFit:NO
                                                       textAlignment:NSTextAlignmentLeft];
        [self.contentView addSubview:stoneobs_ui_label];
        self.orderLable = stoneobs_ui_label;
    });
    ({
        STLabel * stoneobs_ui_label = [[STLabel alloc] initWithFrame:CGRectMake(15, self.orderLable.bottom + 5, 300, 20)
                                                                text:@"sasd"
                                                           textColor:STONEOBS_UI_THIRD_TEXT_COLOR
                                                                font:13
                                                         isSizetoFit:NO
                                                       textAlignment:NSTextAlignmentLeft];
        [self.contentView addSubview:stoneobs_ui_label];
        self.timeLable = stoneobs_ui_label;
    });
    ({
        STLabel * stoneobs_ui_label = [[STLabel alloc] initWithFrame:CGRectMake(0, 0, 200 , self.class.stoneobs_ui_cell_height)
                                                                text:@"sasd"
                                                           textColor:STONEOBS_UI_FIRST_TEXT_COLOR
                                                                font:14
                                                         isSizetoFit:NO
                                                       textAlignment:NSTextAlignmentCenter];
        [self.contentView addSubview:stoneobs_ui_label];
        stoneobs_ui_label.right = UISCREEN_WIDTH - 15;
        stoneobs_ui_label.font = [UIFont fontWithName:STONEOBS_UI_FONT_CU_NAME size:14];
        self.moneyLable = stoneobs_ui_label;
    });
}
- (void)setModel:(THMIneGourpItemOneModel *)model{
    _model = model;
    self.nameLable.text = model.title;
    self.orderLable.text = [NSString stringWithFormat:@"订单编号:%@",model.order_no];
    self.timeLable.text = [NSString stringWithFormat:@"订单编号:%@",model.finish_at];
    self.moneyLable.text = [NSString stringWithFormat:@"+%@",model.amount];
}
@end
